//
//  SignUpViewController.h
//  Kokozu
//
//  Created by Bismarrck on 11-7-17.
//  Copyright 2011年 Tsinghua University. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserDefault.h"

@protocol SignUpOptionDelegate;

@interface SignUpViewController : UIViewController
{
    IBOutlet UITextField *accountField;
    IBOutlet UITextField *passwordField;
    
    BOOL mustSignUp;
    id <SignUpOptionDelegate> delegate;
}

@property (nonatomic, retain) UITextField *accountField;
@property (nonatomic, retain) UITextField *passwordField;
@property (nonatomic, retain) id <SignUpOptionDelegate> delegate;
@property (nonatomic, assign) BOOL mustSignUp;

- (IBAction)signUpButtonPressed:(id)sender;
- (id)initWithFrame:(CGRect)frame signUpEscape:(BOOL)escape;

@end

@protocol SignUpOptionDelegate

@required
- (void)newAccountDidSignUp;

@end
